from django.contrib import admin

# Register your models here.
from QA_tmp import settings
from common.models import CommonModel


@admin.register(CommonModel)
class CommonAdmin(admin.ModelAdmin):
    list_display = ['title', 'type', 'create_time']
    search_fields = ['title']
    list_per_page = settings.LIST_PER_PAGE
    date_hierarchy = 'create_time'
    ordering = ['create_time']
    list_filter = ['type', 'create_time']
